package com.ztesoft.web.common.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DmProcedureArg {
    private String pk_name = "PROCEDURE_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmProcedureCriteria> oredCriteria;

    public DmProcedureArg() {
        oredCriteria = new ArrayList<DmProcedureCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmProcedureCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmProcedureCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmProcedureCriteria or() {
    	DmProcedureCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmProcedureCriteria createCriteria() {
    	DmProcedureCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmProcedureCriteria createCriteriaInternal() {
    	DmProcedureCriteria criteria = new DmProcedureCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmProcedureCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmProcedureCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmProcedureCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmProcedureCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmProcedureCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmProcedureCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmProcedureCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmProcedureCriterion(condition, value1, value2));
        }

        public DmProcedureCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmProcedureCriteria) this;
        }
        public DmProcedureCriteria andProcedureIdIsNull() {
            addCriterion("PROCEDURE_ID is null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdIsNotNull() {
            addCriterion("PROCEDURE_ID is not null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdEqualTo(Integer value) {
            addCriterion("PROCEDURE_ID =", value, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdNotEqualTo(Integer value) {
            addCriterion("PROCEDURE_ID <>", value, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdGreaterThan(Integer value) {
            addCriterion("PROCEDURE_ID >", value, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PROCEDURE_ID >=", value, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdLessThan(Integer value) {
            addCriterion("PROCEDURE_ID <", value, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdLessThanOrEqualTo(Integer value) {
            addCriterion("PROCEDURE_ID <=", value, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdLike(Integer value) {
            addCriterion("PROCEDURE_ID like ", value, "PROCEDURE_ID", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdNotLike(Integer value) {
            addCriterion("PROCEDURE_ID  not like ", value, "PROCEDURE_ID", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdLeftLike(Integer value) {
            addCriterion("PROCEDURE_ID like ", value, "PROCEDURE_ID", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdNotLeftLike(Integer value) {
            addCriterion("PROCEDURE_ID  not like ", value, "PROCEDURE_ID", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdRightLike(Integer value) {
            addCriterion("PROCEDURE_ID like ", value, "PROCEDURE_ID", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdNotRightLike(Integer value) {
            addCriterion("PROCEDURE_ID  not like ", value, "PROCEDURE_ID", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdIn(List<Integer> values) {
            addCriterion("PROCEDURE_ID  in ", values, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdNotIn(List<Integer> values) {
            addCriterion("PROCEDURE_ID not in ", values, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdBetween(Integer value1, Integer value2) {
            addCriterion("PROCEDURE_ID between ", value1, value2, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PROCEDURE_ID not between ", value1, value2, "PROCEDURE_ID");
            return (DmProcedureCriteria) this;
        }
        public DmProcedureCriteria andSourceDataIdIsNull() {
            addCriterion("SOURCE_DATA_ID is null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdIsNotNull() {
            addCriterion("SOURCE_DATA_ID is not null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID =", value, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdNotEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <>", value, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdGreaterThan(Integer value) {
            addCriterion("SOURCE_DATA_ID >", value, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID >=", value, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdLessThan(Integer value) {
            addCriterion("SOURCE_DATA_ID <", value, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <=", value, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdNotLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdNotLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdNotRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID  in ", values, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdNotIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID not in ", values, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID between ", value1, value2, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andSourceDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID not between ", value1, value2, "SOURCE_DATA_ID");
            return (DmProcedureCriteria) this;
        }
        public DmProcedureCriteria andDbLinkIdIsNull() {
            addCriterion("DB_LINK_ID is null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdIsNotNull() {
            addCriterion("DB_LINK_ID is not null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdEqualTo(Integer value) {
            addCriterion("DB_LINK_ID =", value, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdNotEqualTo(Integer value) {
            addCriterion("DB_LINK_ID <>", value, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdGreaterThan(Integer value) {
            addCriterion("DB_LINK_ID >", value, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DB_LINK_ID >=", value, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdLessThan(Integer value) {
            addCriterion("DB_LINK_ID <", value, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdLessThanOrEqualTo(Integer value) {
            addCriterion("DB_LINK_ID <=", value, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdLike(Integer value) {
            addCriterion("DB_LINK_ID like ", value, "DB_LINK_ID", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdNotLike(Integer value) {
            addCriterion("DB_LINK_ID  not like ", value, "DB_LINK_ID", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdLeftLike(Integer value) {
            addCriterion("DB_LINK_ID like ", value, "DB_LINK_ID", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdNotLeftLike(Integer value) {
            addCriterion("DB_LINK_ID  not like ", value, "DB_LINK_ID", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdRightLike(Integer value) {
            addCriterion("DB_LINK_ID like ", value, "DB_LINK_ID", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdNotRightLike(Integer value) {
            addCriterion("DB_LINK_ID  not like ", value, "DB_LINK_ID", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdIn(List<Integer> values) {
            addCriterion("DB_LINK_ID  in ", values, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdNotIn(List<Integer> values) {
            addCriterion("DB_LINK_ID not in ", values, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdBetween(Integer value1, Integer value2) {
            addCriterion("DB_LINK_ID between ", value1, value2, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andDbLinkIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DB_LINK_ID not between ", value1, value2, "DB_LINK_ID");
            return (DmProcedureCriteria) this;
        }
        public DmProcedureCriteria andProcedureNameIsNull() {
            addCriterion("PROCEDURE_NAME is null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameIsNotNull() {
            addCriterion("PROCEDURE_NAME is not null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameEqualTo(String value) {
            addCriterion("PROCEDURE_NAME =", value, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameNotEqualTo(String value) {
            addCriterion("PROCEDURE_NAME <>", value, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameGreaterThan(String value) {
            addCriterion("PROCEDURE_NAME >", value, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameGreaterThanOrEqualTo(String value) {
            addCriterion("PROCEDURE_NAME >=", value, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameLessThan(String value) {
            addCriterion("PROCEDURE_NAME <", value, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameLessThanOrEqualTo(String value) {
            addCriterion("PROCEDURE_NAME <=", value, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameLike(String value) {
            addCriterion("PROCEDURE_NAME like ", value, "PROCEDURE_NAME", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameNotLike(String value) {
            addCriterion("PROCEDURE_NAME  not like ", value, "PROCEDURE_NAME", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameLeftLike(String value) {
            addCriterion("PROCEDURE_NAME like ", value, "PROCEDURE_NAME", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameNotLeftLike(String value) {
            addCriterion("PROCEDURE_NAME  not like ", value, "PROCEDURE_NAME", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameRightLike(String value) {
            addCriterion("PROCEDURE_NAME like ", value, "PROCEDURE_NAME", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameNotRightLike(String value) {
            addCriterion("PROCEDURE_NAME  not like ", value, "PROCEDURE_NAME", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameIn(List<String> values) {
            addCriterion("PROCEDURE_NAME  in ", values, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameNotIn(List<String> values) {
            addCriterion("PROCEDURE_NAME not in ", values, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameBetween(String value1, String value2) {
            addCriterion("PROCEDURE_NAME between ", value1, value2, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andProcedureNameNotBetween(String value1, String value2) {
            addCriterion("PROCEDURE_NAME not between ", value1, value2, "PROCEDURE_NAME");
            return (DmProcedureCriteria) this;
        }
        public DmProcedureCriteria andParamNameIsNull() {
            addCriterion("PARAM_NAME is null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameIsNotNull() {
            addCriterion("PARAM_NAME is not null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameEqualTo(String value) {
            addCriterion("PARAM_NAME =", value, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameNotEqualTo(String value) {
            addCriterion("PARAM_NAME <>", value, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameGreaterThan(String value) {
            addCriterion("PARAM_NAME >", value, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameGreaterThanOrEqualTo(String value) {
            addCriterion("PARAM_NAME >=", value, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameLessThan(String value) {
            addCriterion("PARAM_NAME <", value, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameLessThanOrEqualTo(String value) {
            addCriterion("PARAM_NAME <=", value, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameLike(String value) {
            addCriterion("PARAM_NAME like ", value, "PARAM_NAME", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameNotLike(String value) {
            addCriterion("PARAM_NAME  not like ", value, "PARAM_NAME", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameLeftLike(String value) {
            addCriterion("PARAM_NAME like ", value, "PARAM_NAME", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameNotLeftLike(String value) {
            addCriterion("PARAM_NAME  not like ", value, "PARAM_NAME", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameRightLike(String value) {
            addCriterion("PARAM_NAME like ", value, "PARAM_NAME", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameNotRightLike(String value) {
            addCriterion("PARAM_NAME  not like ", value, "PARAM_NAME", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameIn(List<String> values) {
            addCriterion("PARAM_NAME  in ", values, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameNotIn(List<String> values) {
            addCriterion("PARAM_NAME not in ", values, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameBetween(String value1, String value2) {
            addCriterion("PARAM_NAME between ", value1, value2, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andParamNameNotBetween(String value1, String value2) {
            addCriterion("PARAM_NAME not between ", value1, value2, "PARAM_NAME");
            return (DmProcedureCriteria) this;
        }
        public DmProcedureCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (DmProcedureCriteria) this;
        }
        public DmProcedureCriteria andStateDateIsNull() {
            addCriterion("STATE_DATE is null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateIsNotNull() {
            addCriterion("STATE_DATE is not null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateEqualTo(String value) {
            addCriterion("STATE_DATE =", value, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateNotEqualTo(String value) {
            addCriterion("STATE_DATE <>", value, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateGreaterThan(String value) {
            addCriterion("STATE_DATE >", value, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE_DATE >=", value, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateLessThan(String value) {
            addCriterion("STATE_DATE <", value, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateLessThanOrEqualTo(String value) {
            addCriterion("STATE_DATE <=", value, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateNotLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateLeftLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateNotLeftLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateRightLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateNotRightLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateIn(List<String> values) {
            addCriterion("STATE_DATE  in ", values, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateNotIn(List<String> values) {
            addCriterion("STATE_DATE not in ", values, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateBetween(String value1, String value2) {
            addCriterion("STATE_DATE between ", value1, value2, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andStateDateNotBetween(String value1, String value2) {
            addCriterion("STATE_DATE not between ", value1, value2, "STATE_DATE");
            return (DmProcedureCriteria) this;
        }
        public DmProcedureCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateEqualTo(String value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateNotEqualTo(String value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateGreaterThan(String value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateLessThan(String value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateLessThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateNotLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateLeftLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateNotLeftLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateRightLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateNotRightLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateIn(List<String> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateNotIn(List<String> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateBetween(String value1, String value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

        public DmProcedureCriteria andCreateDateNotBetween(String value1, String value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (DmProcedureCriteria) this;
        }

    }

    public static class DmProcedureCriteria extends GeneratedCriteria {

        protected DmProcedureCriteria() {
            super();
        }
    }

    public static class DmProcedureCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmProcedureCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmProcedureCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmProcedureCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmProcedureCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmProcedureCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmProcedureCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}